var shiData=" { " +
"'福建省' : [ " +
	"{'id':'福州市','name':'福州市'}," +
	"{'id':'厦门市','name':'厦门市'}," +
	"{'id':'莆田市','name':'莆田市'}," +
	"{'id':'三明市','name':'三明市'}," +
	"{'id':'泉州市','name':'泉州市'}," +
	"{'id':'漳州市','name':'漳州市'}," +
	"{'id':'南平市','name':'南平市'}," +
	"{'id':'龙岩市','name':'龙岩市'}," +
	"{'id':'宁德市','name':'宁德市'} ]," +
"'广东省' : [ " +
	"{'id':'广州市','name':'广州市'}," +
	"{'id':'韶关市','name':'韶关市'}," +
	"{'id':'深圳市','name':'深圳市'}," +
	"{'id':'珠海市','name':'珠海市'}," +
	"{'id':'汕头市','name':'汕头市'}," +
	"{'id':'佛山市','name':'佛山市'}," +
	"{'id':'江门市','name':'江门市'}," +
	"{'id':'湛江市','name':'湛江市'}," +
	"{'id':'茂名市','name':'茂名市'}," +
	"{'id':'肇庆市','name':'肇庆市'}," +
	"{'id':'惠州市','name':'惠州市'}," +
	"{'id':'梅州市','name':'梅州市'}," +
	"{'id':'汕尾市','name':'汕尾市'}," +
	"{'id':'河源市','name':'河源市'}," +
	"{'id':'阳江市','name':'阳江市'}," +
	"{'id':'清远市','name':'清远市'}," +
	"{'id':'东莞市','name':'东莞市'}," +
	"{'id':'中山市','name':'中山市'}," +
	"{'id':'潮州市','name':'潮州市'}," +
	"{'id':'揭阳市','name':'揭阳市'}," +
	"{'id':'云浮市','name':'云浮市'} ]" +
"}"; 
var xianData=" { " +
"'福州市': [ " +
	"{'id':'鼓楼区','name':'鼓楼区'}," +
	"{'id':'晋安区','name':'晋安区'}," +
	"{'id':'台江区','name':'台江区'}," +
	"{'id':'仓山区','name':'仓山区'}," +
	"{'id':'马尾区','name':'马尾区'}," +
	"{'id':'福清市','name':'福清市'}," +
	"{'id':'长乐市','name':'长乐市'}," +
	"{'id':'闽侯县','name':'闽侯县'}," +
	"{'id':'连江县','name':'连江县'}," +
	"{'id':'永泰县','name':'永泰县'}," +
	"{'id':'罗源县','name':'罗源县'} ]," +
"'三明市': [ " +
	"{'id':'永安市','name':'永安市'}," +
	"{'id':'梅列区','name':'梅列区'}," +
	"{'id':'三元区','name':'三元区'}," +
	"{'id':'明溪县','name':'明溪县'}," +
	"{'id':'清流县','name':'清流县'}," +
	"{'id':'宁化县','name':'宁化县'}," +
	"{'id':'大田县','name':'大田县'}," +
	"{'id':'沙县','name':'沙县'}," +
	"{'id':'将乐县','name':'将乐县'}," +
	"{'id':'建宁县','name':'建宁县'}," +
	"{'id':'泰宁县','name':'泰宁县'} ]," +
"'漳州市': [ " +
	"{'id':'龙海','name':'龙海'}," +
	"{'id':'诏安','name':'诏安'} ]" +
"}"; 

function selectSheng(){
	$("#city").empty();
	$("#city").append('<option value="">-市-</option>');
	$("#county").empty();
	$("#county").append('<option value="">-县-</option>');
	var province = $("#province").val();
	if (province=="")return;
	var json= eval("("+shiData+")");
	var citys = json[province];
	$(citys).each(function (i){
		var city=citys[i];
		str='<option value="'+city.id+'"  >'+city.name+' </option>';
		$("#city").append(str);
	});
}

function selectShi(){
	$("#county").empty();
	$("#county").append('<option value="" >-县-</option>');
	var city = $("#city").val();
	if (city=="")return;
	var json= eval("("+xianData+")");
	var countys = json[city];
	$(countys).each(function (i){
		var county=countys[i];
		str='<option value="'+county.id+'"  >'+county.name+' </option>';
		$("#county").append(str);	
	});
}

   
